package com.cstz.hb.manage.service.impl;

import com.cstz.hb.manage.dao.SysDeptDao;
import com.cstz.hb.manage.domain.SysDept;
import com.cstz.hb.manage.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysDeptServiceImpl implements SysDeptService {
	@Autowired
	private SysDeptDao sysDeptDao;

    @Override
    public SysDept getById(Long id) {
        return sysDeptDao.getById(id);
    }

    @Override
    public List<SysDept> selectDepts(int deptType) {
        return sysDeptDao.selectDepts(deptType);
    }

    @Override
    public List<SysDept> selectDeptsByParentId(Long parentId){
        return sysDeptDao.selectDeptsByParentId(parentId);
    }
}
